package com.assignwork.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @ClassName VoyageVisaPageVO
 * @Description 船舶签证分页VO
 * @Author dujianyu
 * @Date 2023/8/23 8:51
 */
@Data
public class VoyageVisaPageVO {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "代理公司")
    private String agencyCo;

    @ApiModelProperty(value = "代理公司")
    private String agencyName;

    @ApiModelProperty(value = "进出口")
    private String impExp;

    @ApiModelProperty(value = "进出口")
    private String impExpName;

    @ApiModelProperty(value = "货名")
    private String cargoNameKey;

    @ApiModelProperty(value = "货名")
    private String cargoName;

    @ApiModelProperty(value = "别名")
    private String reCargoNameKey;

    @ApiModelProperty(value = "别名")
    private String reCargoName;

    @ApiModelProperty(value = "散杂")
    private String packageBulkKey;

    @ApiModelProperty(value = "散杂")
    private String packageBulkName;

    @ApiModelProperty(value = "总吨")
    private BigDecimal totalTon;

    @ApiModelProperty(value = "签证吨")
    private BigDecimal visaTon;

    @ApiModelProperty(value = "备注")
    private String remark;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "航次ID")
    private Long voyageId;

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建人")
    private String createUserName;

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新人")
    private String updateUserName;
}
